package p06.p5;

/**
 * Created by wy on 7/15/2017.
 */
 public  class Student {
     private String name;
     private  int age;

     public Student(){

         this.name = "gouzao";
         this.age = 9999;
     }

     public Student(String name,int age){
         this.age = age;
         this.name = name;
     }
     public void show(){
         System.out.println(name + "----"+age);
     }

}


class Demo{
    public static void main(String[]args){

        Student student = new Student();
        student.show();
        Student student1 =  new Student("zhangsan",33);
        student1.show();

    }

}